package com.ruoyi.system.domain.dto;

import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 用户会员对象 bdm_member_rule
 *
 * @author ruoyi
 * @date 2024-12-09
 */
@Data
public class BdmMemberSaveDto implements Serializable {


    @Excel(name = "vip级别")
    private Long memberLevel;

    @Excel(name = "vip等级名称")
    private String memberName;

    @Excel(name = "代理级别")
    private Long memberAgencyLevel;

    @Excel(name = "代理级别名称")
    private String memberAgencyLevelName;

    @Excel(name = "用户昵称")
    @NotBlank(message = "请输入昵称")
    private String nikeName;

    @Excel(name = "上级推荐人id")
    private String parentId;

    @NotBlank(message = "请输入手机号")
    @Length(min = 11,max = 11,message = "手机号长度错误")
    @Pattern(regexp = "^[1]([3-9])[0-9]{9}$",message = "手机号格式不正确")
    @Excel(name = "手机号")
    private String phonenumber;
}
